package com.tencreat.domain.account.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 更改新手机号
 * @author zixin
 */
@Data
public class UpdateNewPhoneDTO {

    @ApiModelProperty(value = "旧手机号", hidden = true)
    private String oldPhone;

    @ApiModelProperty(value = "新手机号",required = true)
    @NotBlank
    private String newPhone;

    @ApiModelProperty(value = "新手机验证码",required = true)
    @NotBlank
    private String code;

}
